package com.dure.hotmemory;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.dure.hotmemory.scenes.BaseScene;
import com.umeng.analytics.MobclickAgent;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;


/**
 * Created by leix on 08/04/2017.
 */

public abstract class BaseActivity extends AppCompatActivity implements View.OnClickListener{
    public ExecutorService executorService = Executors.newFixedThreadPool(2);
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    public abstract void moveToNewScene(BaseScene newScene);

    public abstract void backToLastScene();

    @Override
    protected void onResume() {
        // TODO Auto-generated method stub
        super.onResume();
        MobclickAgent.onResume(this);
    }

    @Override
    protected void onPause() {
        // TODO Auto-generated method stub
        super.onPause();
        MobclickAgent.onPause(this);
    }


}
